package com.opennews.openplatform

class IncomeExpenseDetailType {
    String id
    AccountGroup accountGroup
    String incomeExpenseType                         // IncomeExpenseTypeConstant
    String name
    String title
    String subtitle
    Integer orderIndex
    boolean analysisIncluded = true
    Date dateCreated
    Date lastUpdated

    static constraints = {
        accountGroup nullable: false
        incomeExpenseType nullable: false, blank: false, maxSize: 50
        name nullable: false, blank: false, maxSize: 50
        title nullable: false, blank: false, maxSize: 50
        subtitle nullable: true, blank: true, maxSize: 50
        orderIndex nullable: false
        analysisIncluded nullable: false
    }
}